﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EngineLayer.Model
{
    public sealed partial class Workspace
    {
        private Library library;
        private User currentUser;

        internal Workspace(Logon logon)
        {
            SetUserInfo(logon.user);
            SetLibrary();
        }

        internal void SetUserInfo(User user)
        {
            this.currentUser = user;
        }
        
        internal void SetLibrary()
        {
            this.library = new Library(this);    
        }


        public Library MyLibrary { get { return this.library; } }
        public User CurrentUser { get { return this.currentUser; } }

    }
}
